package org.slf4j.impl;

import java.util.concurrent.ConcurrentHashMap;

import org.slf4j.ILoggerFactory;
import org.slf4j.Logger;

public class LoggerFactory implements ILoggerFactory {

	private ConcurrentHashMap<String, MyLoggerAdapter> loggers = new ConcurrentHashMap<>();
	
	@Override
	public Logger getLogger(String name) {
		loggers.putIfAbsent(name, new MyLoggerAdapter(name));
		return loggers.get(name);
	}

}
